Improve top-level AWS CLI completions#227
Merged
Merged
Conversation
- Add all AWS CLI global options (--profile, --region, --output, --color, etc.) - Add profiles generator that dynamically reads from ~/.aws/config and ~/.aws/credentials - Add static suggestions for --region (29 AWS regions), --output (5 formats), --color, --cli-binary-format, and --cli-error-format - Add filepaths template for --ca-bundle - Remove unused Fig generateSpec JS field Co-Authored-By: Oz <oz-agent@warp.dev>
Co-Authored-By: Oz <oz-agent@warp.dev>
APP-3499 Improve AWS completions
There's two components to this:
See GitHub #1811, #652 |
Contributor
Author
vkodithala
approved these changes
Apr 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Addresses APP-3499: Improve AWS CLI completions.
The existing
aws.jsonspec had subcommand definitions but lacked global options and generators. This PR adds:Changes
Global options — All 19 AWS CLI global options from
aws help, including--profile,--region,--output,--color,--ca-bundle,--debug,--no-verify-ssl,--no-paginate,--query,--cli-read-timeout,--cli-connect-timeout,--cli-binary-format,--no-cli-pager,--cli-auto-prompt,--no-cli-auto-prompt,--cli-error-format,--no-sign-request,--endpoint-url, and--version. All global options are markedisPersistentso they apply to subcommands.profilesgenerator (command-signatures/src/generators/aws.rs) — Dynamically reads profile names from~/.aws/configand~/.aws/credentials. Works on both macOS and Linux.Static suggestions for options with enumerated values:
--region: 29 AWS regions--output: json, text, table, yaml, yaml-stream--color: on, off, auto--cli-binary-format: base64, raw-in-base64-out--cli-error-format: legacy, json, yaml, text, table, enhancedFile template for
--ca-bundle(filepaths completion).Cleanup — Removed the unused Fig
generateSpecJavaScript field. Added adescriptionfield.Generator Screenshots
aws --profile <Tab>— dynamically lists profiles from~/.aws/configand~/.aws/credentialsaws --region <Tab>— static list of 29 AWS regionsaws --output <Tab>— static list of output formatsConversation: https://staging.warp.dev/conversation/9651a469-b84f-43ff-b35d-f368e31f239a
Run: https://oz.staging.warp.dev/runs/019d4b02-7acf-7311-83ea-51b3f31ecd39
Plans:
This PR was generated with Oz.